package web.exercise.Dao;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

import web.exercise.entity.Contacts;


//dao包中主要有五个接口
public interface ContactsDao{
	
	public ArrayList<Contacts> getContactsList();
	public boolean addContacts(Contacts contacts);
	public Contacts getContactsById(String id);
	public void modify(Contacts con);
	public void delete(String id);
	public boolean judge(String id, String name);
	
	
	/*public static void main(String[] args) {
		File file=new File("E:/apache-tomcat-7.0.79/apache-tomcat-7.0.79/webapps/Demo02_01_Contacts/WEB-INF/classes/contacts.xml");
		File dir=new File(".");
		System.out.println(file.exists());
		System.out.println(dir.getAbsolutePath());
	}*/
}


